@extends('backend::layout')

@section('title', '异常行为类型列表')

@section('content')
    <div class="card border-no">
        <div class="card-body">
{{--            @if($currentAdmin->allow('mental/add'))--}}
{{--            <div class="row">--}}
{{--                <div class="clearfix"></div>--}}
{{--                <div class="col-md-12 col-sm-12 col-xs-12 pull-right">--}}
{{--                    <p>--}}
{{--                        <a href="{{ route('admin.abnormal.add') }}" class="btn btn-primary btn-sm">新增</a>--}}
{{--                    </p>--}}
{{--                </div>--}}
{{--            </div>--}}
{{--            @endif--}}
            <h4 class="text-black f-20"></h4>
            <div class="table-responsive">
                <table class="table table-hover">
                    <thead>
                    <tr>
                        <th scope="col">#</th>
                        <th scope="col">{{ __('code') }}</th>
                        <th scope="col">{{ __('Name') }}</th>
{{--                        <th scope="col">{{ __('Options') }}</th>--}}
                    </tr>
                    </thead>
                    <tbody>
                    @if(isset($list))
                        @foreach($list as $idx => $item)
                            <tr>
                                <th scope="row">{{ $idx + 1 }}</th>
                                <td>{{ $item->at_code }}</td>
                                <td>{{ $item->title }}</td>
{{--                                <td>--}}
{{--                                    @if( $currentAdmin->allow('abnormal/edit'))--}}
{{--                                        <a href="{{ route('admin.abnormal.edit', ['id' => $item->id]) }}" class="text-info" title="{{ __('Edit') }}">&nbsp;&nbsp;<i class="fa fa-pencil"></i></a>--}}
{{--                                    @endif--}}
{{--                                    @if($currentAdmin->allow('abnormal/delete'))--}}
{{--                                        <a href="{{ route('admin.abnormal.delete', ['id' => $item->id]) }}" class="text-danger confirm-delete" title="{{ __('Delete') }}">&nbsp;&nbsp;<i class="fa fa-trash-o"></i></a>--}}
{{--                                    @endif--}}
{{--                                </td>--}}
                            </tr>
                        @endforeach
                    @endif
                    </tbody>
                </table>
            </div>
            <div class="row">
                <div class="clearfix"></div>
                <div class="col-md-12 col-sm-12 col-xs-12 pull-right">
                    @if(isset($list))
                        {{ $list->links() }}
                    @endif
                </div>
            </div>
        </div>
    </div>
@stop